package com.base.app_core.util;

import android.app.Activity;
import android.content.Context;
import android.graphics.Color;

/**
 * Created by Administrator on 2017/10/20 0020.
 */

public class TimePickUtil {

//    private DatePickerPopWin pickerPopWin;
//
//    public TimePickUtil() {
//    }
//
//    public TimePickUtil(Context co, final onPickInitLisener l) {
//        pickerPopWin = new DatePickerPopWin.Builder(co, new DatePickerPopWin.OnDatePickedListener() {
//            @Override
//            public void onDatePickCompleted(int year, int month, int day, String dateDesc) {
////                chooseTime.setText(dateDesc);
//                l.complete(dateDesc);
//            }
//        }).textConfirm("确定") //text of confirm button
//                .textCancel("取消") //text of cancel button
//                .btnTextSize(16) // button text size
//                .viewTextSize(25) // pick view text size
//                .colorCancel(Color.parseColor("#999999")) //color of cancel button
//                .colorConfirm(Color.parseColor("#009900"))//color of confirm button
//                .minYear(1990) //min year in loop
//                .maxYear(Integer.parseInt(DateUtil.longToString(System.currentTimeMillis(), DateUtil.year) + 1)) // max year in loop
//                .showDayMonthYear(true) // shows like dd mm yyyy (default is false)
//                .dateChose(DateUtil.longToString(System.currentTimeMillis(), DateUtil.ymd)) // date chose when init popwindow
//                .build();
//    }
//
//    public interface onPickInitLisener {
//        void complete(String dateDesc);
//    }
//
//    public void show(Activity context) {
//        if (pickerPopWin != null && !pickerPopWin.isShowing()) {
//            pickerPopWin.showPopWin(context);
//        }
//    }
}
